package com.wjyf.reducing_bento.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjyf.reducing_bento.model.dto.CouponAddDto;
import com.wjyf.reducing_bento.model.entity.CouponBean;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjyf.reducing_bento.model.vo.CouponVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 优惠券基础配置表 服务类
 * </p>
 *
 * @author wjyf
 * @since 2023-03-14 08:36:32
 */
public interface CouponService extends IService<CouponBean> {

    boolean add(CouponAddDto couponAddDto);

    Page<CouponBean> get(Long current, Long pageSize);

    List<CouponVo> getOneself(HttpServletRequest request);
}
